package bookstore.bound.book;

import javax.validation.constraints.NotNull;

public class BookCreateForm {
    @NotNull
    private String isbn;
    @NotNull
    private String name;
    @NotNull
    private String author;
    @NotNull
    private String house;
    @NotNull
    private String price;
    @NotNull
    private String sellPrice;
    private int stock;
    @NotNull
    private String pubdate;
    @NotNull
    private String desp;

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getHouse() {
        return house;
    }

    public void setHouse(String house) {
        this.house = house;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(String sellPrice) {
        this.sellPrice = sellPrice;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getPubdate() {
        return pubdate;
    }

    public void setPubdate(String pubdate) {
        this.pubdate = pubdate;
    }

    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }

    public String toString() {
        return String.format("Form book[%s, %s, %s, %s]", isbn, name, author, house);
    }

}
